import util from "../utils/util.js";
//微信支付
function wxPayModel(id) {
    const url = util.api.pay;
    const method = 'POST';
    const data = {
        id,
        token: util.token,
    }
    return util.sendRequest(url, method, data)
}
//会员卡支付
function memberPayModel(id, passwd) {
    const url = util.api.paywords
    const method = 'POST'
    const data = {
        id,
        passwd,
        token: util.token
    }
    return util.sendRequestFail(url, method, data)
}
//充值
function rechargeModel(money) {
    const url = util.api.saving
    const method = "POST";
    const data = {
        token: util.token,
        money
    }
    return util.sendRequest(url, method, data)
}

export {
    wxPayModel,
    memberPayModel,
    rechargeModel
}